package com.dts.gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * <p>
 *    微服务网关：<br/>
 *    1.已实现接口恶意刷新和暴力请求;<br/>
 *    2.微服务2020.3负载均衡
 * </p>
 *
 * @author zhoujh
 * @date 2022/06/01 09:41
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@Slf4j
public class GatewayApplication {
    public static void main(String[] args) {
        Long start = System.currentTimeMillis();
        SpringApplication.run(GatewayApplication.class, args);
        log.warn("Gateway启动成功，耗时：{}毫秒", (System.currentTimeMillis() - start));
    }
}
